package com.ll.api.fallback;


import com.ll.api.feign.PointFeign;
import com.ll.common.core.common.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class PointFeignFallbackFactory implements FallbackFactory<PointFeign> {
    @Override
    public PointFeign create(Throwable cause) {
        return new PointFeign( ) {
            @Override
            public R add(Integer uid, Integer pointType) {
                return R.fail("添加积分失败!");
            }
        };
    }
}
